*** Settings ***

Documentation   A test suite containing tests related to invalid login. These
...             tests are data-driven by they nature. They use a single
...             keyword, specified with Test Template setting, that is called
...             with different arguments to cover different scenarios.
Library        RequestsLibrary
Library        SeleniumLibrary


*** Test Cases ***
Valid Login      
    Open Browser    https://www.baidu.com    headlesschrome

    Input Text    //input[@id='kw']    robotframework seleniumLibrary
    Press Keys    //input[@id='su']    "'\ue007'"
    #Click Button    //input[@id='su']
    ${res}    Get Window Titles
    Log    ${res}
    #Log Source
    Sleep    1
    #Page Should Contain    百度一下
    Page Should Contain    robotframework框架
    
    [Teardown]    Close Browser
